import 'package:json_annotation/json_annotation.dart';

part 'address.g.dart';

@JsonSerializable()
class AddressReceiveModel {

  bool checked;

  String name;

  String mobile;

  String district;

  String address;

  AddressReceiveModel({ this.checked = false, required this.name, required this.mobile, required this.district , required this.address });

  factory AddressReceiveModel.fromJson(Map<String, dynamic> json) =>
      _$AddressReceiveModelFromJson(json);

  Map<String, dynamic> toJson() => _$AddressReceiveModelToJson(this);

  @override
  String toString() {
    return toJson().toString();
  }
}